/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package marifnst.jse71.using_operators_and_decision_constructs;

/**
 *
 * @author arifnasution
 */
public class Driver
{

    public static void main( String args[] )
    {
        int sampleInteger = 5;
        System.out.println("int value : " + sampleInteger);
        if ( sampleInteger > 0 )
        {
            System.out.println( "if process : more than zero" );
        } else
        {
            System.out.println( "if process : less than zero" );
        }

        System.out.print( "switch process : " );
        switch ( sampleInteger )
        {
            case 10:
                System.out.println("value 10");
                break;
            case 0:case 2:case 4:case 6:case 8:
                System.out.println("value 0 or 2 or 4 or 6 or 8");
                break;
            case 1:case 3:case 5:case 7:case 9:
                System.out.println("value 1 or 3 or 5 or 7 or 9");
                break;
            default:
                System.out.println("default");
                break;
        }
    }
}
